<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGoodsBrowsesTable extends Migration
{
    /**
     * Run the migrations.
     * 商品浏览量
     * @return void
     */
    public function up()
    {
        Schema::create('goods_browses', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('user_id')->comment('厂家ID');
            $table->integer('goods_id')->comment('商品ID');
            $table->integer('shop_id')->comment('分销商ID');
            $table->integer('pagevies')->comment('浏览量');
            $table->integer('order_num')->comment('订单量');
            $table->integer('deal_num')->comment('成交量');
            $table->integer('show_num')->comment('展现量');
            $table->softDeletes()->comment('软删除');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('goods_browses');
    }
}
